const routes = [
  {
    // 登录
    path: "/login", name: "Login",
    component: () => import("../pages/login/Login.vue"),
  },
  {
    // 首页
    path: "/home", name: "Home",
    component: () => import("../pages/home/Homes.vue"),
  },
  {
    // 城市选择
    path: "/city", name: "City",
    component: () => import("../pages/city/City.vue"),
  },
  {
    // 城市列表
    path: "/detail/:id", name: "Detail",
    component: () => import("../pages/detail/Detail.vue"),
  },

  {
    path: "*", redirect: "/home",
  },

];

export {routes};